package com.huatai.datacenter.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.huatai.common.api.R;
import com.huatai.datacenter.entity.DictionaryEntity;
import com.huatai.datacenter.service.DictionaryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Lion
 * @date 2023/7/25  14:41
 */
@RequestMapping("/dic")
@RestController
@Api(value = "字典表", tags = "字典表")
public class DictionaryController extends BaseController<DictionaryService, DictionaryEntity>{

	@ApiOperation("获取实时服务类型")
	@GetMapping("/queryList")
	public R queryDicInfo(){

		QueryWrapper<DictionaryEntity> queryWrapper = new QueryWrapper<>();
		queryWrapper.eq("dataType","数据服务类型");
		List<DictionaryEntity> list = this.service.list(queryWrapper);

		return R.data(list);
	}

}
